//模块
import {BrowserModule} from '@angular/platform-browser';
import {NgModule} from '@angular/core';
import {FormsModule} from '@angular/forms';
import {HttpModule} from '@angular/http';
//组件
import {AppComponent} from './app.component';
import {ProductComponent} from './product/product.component';
import {StarComponent} from './star/star.component';
import {HomeComponent} from './home/home.component';
import {NavComponent} from './nav/nav.component';
import {AboutComponent} from './about/about.component';
//路由
import{AppRoutingModule} from "./app.routing.module";
import { ChildrenRouteComponent } from './children-route/children-route.component';
import { ChildrenRoute2Component } from './children-route2/children-route2.component';
import { ChatComponent } from './chat/chat.component';
@NgModule({
    declarations: [
        AppComponent,
        ProductComponent,
        StarComponent,
        HomeComponent,
        NavComponent,
        AboutComponent,
        ChildrenRouteComponent,
        ChildrenRoute2Component,
        ChatComponent
    ],
    imports: [
        BrowserModule,
        FormsModule,
        HttpModule,
        AppRoutingModule
    ],
    providers: [],
    bootstrap: [AppComponent]
})
export class AppModule {
}
